static const guint16 keymap_xorgxwin2xtkbd[] = {
  [0x9] = 0x1,         /* 9 => 1 via 1 (KEY_ESC) */
  [0xa] = 0x2,         /* 10 => 2 via 2 (KEY_1) */
  [0xb] = 0x3,         /* 11 => 3 via 3 (KEY_2) */
  [0xc] = 0x4,         /* 12 => 4 via 4 (KEY_3) */
  [0xd] = 0x5,         /* 13 => 5 via 5 (KEY_4) */
  [0xe] = 0x6,         /* 14 => 6 via 6 (KEY_5) */
  [0xf] = 0x7,         /* 15 => 7 via 7 (KEY_6) */
  [0x10] = 0x8,        /* 16 => 8 via 8 (KEY_7) */
  [0x11] = 0x9,        /* 17 => 9 via 9 (KEY_8) */
  [0x12] = 0xa,        /* 18 => 10 via 10 (KEY_9) */
  [0x13] = 0xb,        /* 19 => 11 via 11 (KEY_0) */
  [0x14] = 0xc,        /* 20 => 12 via 12 (KEY_MINUS) */
  [0x15] = 0xd,        /* 21 => 13 via 13 (KEY_EQUAL) */
  [0x16] = 0xe,        /* 22 => 14 via 14 (KEY_BACKSPACE) */
  [0x17] = 0xf,        /* 23 => 15 via 15 (KEY_TAB) */
  [0x18] = 0x10,       /* 24 => 16 via 16 (KEY_Q) */
  [0x19] = 0x11,       /* 25 => 17 via 17 (KEY_W) */
  [0x1a] = 0x12,       /* 26 => 18 via 18 (KEY_E) */
  [0x1b] = 0x13,       /* 27 => 19 via 19 (KEY_R) */
  [0x1c] = 0x14,       /* 28 => 20 via 20 (KEY_T) */
  [0x1d] = 0x15,       /* 29 => 21 via 21 (KEY_Y) */
  [0x1e] = 0x16,       /* 30 => 22 via 22 (KEY_U) */
  [0x1f] = 0x17,       /* 31 => 23 via 23 (KEY_I) */
  [0x20] = 0x18,       /* 32 => 24 via 24 (KEY_O) */
  [0x21] = 0x19,       /* 33 => 25 via 25 (KEY_P) */
  [0x22] = 0x1a,       /* 34 => 26 via 26 (KEY_LEFTBRACE) */
  [0x23] = 0x1b,       /* 35 => 27 via 27 (KEY_RIGHTBRACE) */
  [0x24] = 0x1c,       /* 36 => 28 via 28 (KEY_ENTER) */
  [0x25] = 0x1d,       /* 37 => 29 via 29 (KEY_LEFTCTRL) */
  [0x26] = 0x1e,       /* 38 => 30 via 30 (KEY_A) */
  [0x27] = 0x1f,       /* 39 => 31 via 31 (KEY_S) */
  [0x28] = 0x20,       /* 40 => 32 via 32 (KEY_D) */
  [0x29] = 0x21,       /* 41 => 33 via 33 (KEY_F) */
  [0x2a] = 0x22,       /* 42 => 34 via 34 (KEY_G) */
  [0x2b] = 0x23,       /* 43 => 35 via 35 (KEY_H) */
  [0x2c] = 0x24,       /* 44 => 36 via 36 (KEY_J) */
  [0x2d] = 0x25,       /* 45 => 37 via 37 (KEY_K) */
  [0x2e] = 0x26,       /* 46 => 38 via 38 (KEY_L) */
  [0x2f] = 0x27,       /* 47 => 39 via 39 (KEY_SEMICOLON) */
  [0x30] = 0x28,       /* 48 => 40 via 40 (KEY_APOSTROPHE) */
  [0x31] = 0x29,       /* 49 => 41 via 41 (KEY_GRAVE) */
  [0x32] = 0x2a,       /* 50 => 42 via 42 (KEY_LEFTSHIFT) */
  [0x33] = 0x2b,       /* 51 => 43 via 43 (KEY_BACKSLASH) */
  [0x34] = 0x2c,       /* 52 => 44 via 44 (KEY_Z) */
  [0x35] = 0x2d,       /* 53 => 45 via 45 (KEY_X) */
  [0x36] = 0x2e,       /* 54 => 46 via 46 (KEY_C) */
  [0x37] = 0x2f,       /* 55 => 47 via 47 (KEY_V) */
  [0x38] = 0x30,       /* 56 => 48 via 48 (KEY_B) */
  [0x39] = 0x31,       /* 57 => 49 via 49 (KEY_N) */
  [0x3a] = 0x32,       /* 58 => 50 via 50 (KEY_M) */
  [0x3b] = 0x33,       /* 59 => 51 via 51 (KEY_COMMA) */
  [0x3c] = 0x34,       /* 60 => 52 via 52 (KEY_DOT) */
  [0x3d] = 0x35,       /* 61 => 53 via 53 (KEY_SLASH) */
  [0x3e] = 0x36,       /* 62 => 54 via 54 (KEY_RIGHTSHIFT) */
  [0x3f] = 0x37,       /* 63 => 55 via 55 (KEY_KPASTERISK) */
  [0x40] = 0x38,       /* 64 => 56 via 56 (KEY_LEFTALT) */
  [0x41] = 0x39,       /* 65 => 57 via 57 (KEY_SPACE) */
  [0x42] = 0x3a,       /* 66 => 58 via 58 (KEY_CAPSLOCK) */
  [0x43] = 0x3b,       /* 67 => 59 via 59 (KEY_F1) */
  [0x44] = 0x3c,       /* 68 => 60 via 60 (KEY_F2) */
  [0x45] = 0x3d,       /* 69 => 61 via 61 (KEY_F3) */
  [0x46] = 0x3e,       /* 70 => 62 via 62 (KEY_F4) */
  [0x47] = 0x3f,       /* 71 => 63 via 63 (KEY_F5) */
  [0x48] = 0x40,       /* 72 => 64 via 64 (KEY_F6) */
  [0x49] = 0x41,       /* 73 => 65 via 65 (KEY_F7) */
  [0x4a] = 0x42,       /* 74 => 66 via 66 (KEY_F8) */
  [0x4b] = 0x43,       /* 75 => 67 via 67 (KEY_F9) */
  [0x4c] = 0x44,       /* 76 => 68 via 68 (KEY_F10) */
  [0x4d] = 0x45,       /* 77 => 69 via 69 (KEY_NUMLOCK) */
  [0x4e] = 0x46,       /* 78 => 70 via 70 (KEY_SCROLLLOCK) */
  [0x4f] = 0x47,       /* 79 => 71 via 71 (KEY_KP7) */
  [0x50] = 0x48,       /* 80 => 72 via 72 (KEY_KP8) */
  [0x51] = 0x49,       /* 81 => 73 via 73 (KEY_KP9) */
  [0x52] = 0x4a,       /* 82 => 74 via 74 (KEY_KPMINUS) */
  [0x53] = 0x4b,       /* 83 => 75 via 75 (KEY_KP4) */
  [0x54] = 0x4c,       /* 84 => 76 via 76 (KEY_KP5) */
  [0x55] = 0x4d,       /* 85 => 77 via 77 (KEY_KP6) */
  [0x56] = 0x4e,       /* 86 => 78 via 78 (KEY_KPPLUS) */
  [0x57] = 0x4f,       /* 87 => 79 via 79 (KEY_KP1) */
  [0x58] = 0x50,       /* 88 => 80 via 80 (KEY_KP2) */
  [0x59] = 0x51,       /* 89 => 81 via 81 (KEY_KP3) */
  [0x5a] = 0x52,       /* 90 => 82 via 82 (KEY_KP0) */
  [0x5b] = 0x53,       /* 91 => 83 via 83 (KEY_KPDOT) */
  [0x61] = 0x147,      /* 97 => 327 via 102 (KEY_HOME) */
  [0x62] = 0x148,      /* 98 => 328 via 103 (KEY_UP) */
  [0x63] = 0x149,      /* 99 => 329 via 104 (KEY_PAGEUP) */
  [0x64] = 0x14b,      /* 100 => 331 via 105 (KEY_LEFT) */
  [0x66] = 0x14d,      /* 102 => 333 via 106 (KEY_RIGHT) */
  [0x67] = 0x14f,      /* 103 => 335 via 107 (KEY_END) */
  [0x68] = 0x150,      /* 104 => 336 via 108 (KEY_DOWN) */
  [0x69] = 0x151,      /* 105 => 337 via 109 (KEY_PAGEDOWN) */
  [0x6a] = 0x152,      /* 106 => 338 via 110 (KEY_INSERT) */
  [0x6b] = 0x153,      /* 107 => 339 via 111 (KEY_DELETE) */
  [0x6c] = 0x11c,      /* 108 => 284 via 96 (KEY_KPENTER) */
  [0x6d] = 0x11d,      /* 109 => 285 via 97 (KEY_RIGHTCTRL) */
  [0x6e] = 0x146,      /* 110 => 326 via 119 (KEY_PAUSE) */
  [0x6f] = 0x54,       /* 111 => 84 via 99 (KEY_SYSRQ) */
  [0x70] = 0x135,      /* 112 => 309 via 98 (KEY_KPSLASH) */
  [0x71] = 0x138,      /* 113 => 312 via 100 (KEY_RIGHTALT) */
  [0x73] = 0x15b,      /* 115 => 347 via 125 (KEY_LEFTMETA) */
  [0x74] = 0x15c,      /* 116 => 348 via 126 (KEY_RIGHTMETA) */
  [0x75] = 0x15d,      /* 117 => 349 via 127 (KEY_COMPOSE) */
  [0x76] = 0x5d,       /* 118 => 93 via 183 (KEY_F13) */
  [0x77] = 0x5e,       /* 119 => 94 via 184 (KEY_F14) */
  [0x78] = 0x5f,       /* 120 => 95 via 185 (KEY_F15) */
  [0x79] = 0x55,       /* 121 => 85 via 186 (KEY_F16) */
  [0x7a] = 0x103,      /* 122 => 259 via 187 (KEY_F17) */
  [0x7e] = 0x59,       /* 126 => 89 via 117 (KEY_KPEQUAL) */
  [0x85] = 0x7d,       /* 133 => 125 via 124 (KEY_YEN) */
  [0xd0] = 0x70,       /* 208 => 112 via 93 (KEY_KATAKANAHIRAGANA) */
};
